package jay.home.bet.domain.logic;

import java.util.List;
import java.util.Map;

import jay.home.bet.domain.Event;

public interface OddsService {

  Event getEvent(String eventid);

  List<Event> getEvents(int page, int range);
  
  List<Event> getAliveEvents(int page, int range);
  
  List<Event> getRunningEvents(int page, int range);
  
  List<Event> getSleepingEvents(int page, int range);
  
  List<Event> getNoRunningEvents(int page, int range);
  
  List<Event> getMorningEvents(int page, int range);
  
  List<Event> getUnsettledEvents(int page, int range);
  
  List<Event> getGunQiuEvents(int page, int range);
  
  List<Event> getDanshiEvents(int page, int range);
  
  /**
   * 鸡肋, 某天会把它删除掉, 不要使用
   */
  List<Event> getEventsByType(String type, int page, int range);
  
  Event getEventByComp(String compid);
  
  List<Event> getEventsByComp(String compid, int page, int range);

  void updateEvent(Event event);
  
  void updateEventsByComp(Event event);

  void insertEvent(Event event);
  
  Event insertEvent(Event event , String compId);
  
  int getByEvent(String compId);
  
  Map getCounter(String eventid);
  
  void deleteEvent(String eventid);
  
  void increaseCounter(String oddname, String eventid);
  
  List<Event> getEvents(Map map, int page, int range);
  
  int countEvents(Map map);
}